@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

scrollbar{
-moz-appearance:none;
-moz-binding:url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
cursor:default;
background:url("chrome://global/skin/scrollbar/scrollbar-bg.png") top left repeat-y}

scrollbar[orient="horizontal"]{
background:url("chrome://global/skin/scrollbar/scrollbar-bg-horz.png") top left repeat-x}

thumb{
-moz-appearance:none;
min-height:8px;
background-color:#d9dadc;
border:3px solid;
-moz-border-top-colors:#e3e3e3 #a7a7a7 #e3e3e3;
-moz-border-right-colors:#e3e3e3 #a7a7a7 #c2c8cd;
-moz-border-bottom-colors:#e3e3e3 #a7a7a7 #e3e3e3;
-moz-border-left-colors:#e3e3e3 #a7a7a7 #e3e3e3;
-moz-border-radius:3px}

thumb:hover{
background-color:#a7d9f5;
-moz-border-top-colors:#e3e3e3 #3088cd #e3e3e3;
-moz-border-right-colors:#e3e3e3 #3088cd #cfcfcf;
-moz-border-bottom-colors:#e3e3e3 #3088cd #e3e3e3;
-moz-border-left-colors:#e3e3e3 #3088cd #e3e3e3}

thumb[orient="horizontal"]{
background-image:url("chrome://global/skin/scrollbar/scrollbar-thumb-gripper-horz.png");
background-position:center center;
background-repeat: no-repeat}

thumb[orient="vertical"]{
background-image:url("chrome://global/skin/scrollbar/scrollbar-thumb-gripper-vert.png");
background-position:center center;
background-repeat: no-repeat}

thumb[orient="vertical"]:hover{
background-image:url("chrome://global/skin/scrollbar/scrollbar-thumb-gripper-vert-hover.png");
background-position:center center;
background-repeat: no-repeat}

thumb > gripper{
-moz-appearance:none}

scrollcorner{
-moz-appearance:none;
-moz-binding:url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
cursor:default;
background-color:#efefef}

scrollbarbutton{
-moz-appearance:none;
border:none;
background-attachment:scroll;
background:no-repeat top left;
min-width:16px;
min-height:16px}

scrollbarbutton[type="increment"]{
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-rit.png")}

scrollbarbutton[type="increment"]:hover:not([disabled="true"]),
scrollbarbutton[type="increment"]:hover:active:not([disabled="true"]){
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-rit-hov.png");
background-position:center center}

scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]{
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-dn.png")}

scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover:not([disabled="true"]),
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover:active:not([disabled="true"]){
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-dn-hov.png");
background-position:center center}

scrollbarbutton[type="decrement"]{
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-lft.png")}

scrollbarbutton[type="decrement"]:hover:not([disabled="true"]),
scrollbarbutton[type="decrement"]:hover:active:not([disabled="true"]){
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-lft-hov.png");
background-position:center center}

scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]{
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-up.png")}

scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover:not([disabled="true"]),
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover:active:not([disabled="true"]){
background-image:url("chrome://global/skin/scrollbar/arrow-scrollbar-up-hov.png");
background-position:center center}

@media print {
html|div scrollbar{-moz-appearance:scrollbartrack-horizontal;-moz-binding:url("chrome://global/content/bindings/scrollbar.xml#scrollbar");cursor:default;background:url("chrome://global/skin/scrollbar/slider.gif") scrollbar}
html|div scrollbar[orient="vertical"]{-moz-appearance:scrollbartrack-vertical}
html|div thumb,html|div scrollbarbutton{border:2px solid;-moz-border-top-colors:ThreeDLightShadow ThreeDHighlight;-moz-border-right-colors:ThreeDDarkShadow ThreeDShadow;-moz-border-bottom-colors:ThreeDDarkShadow ThreeDShadow;-moz-border-left-colors:ThreeDLightShadow ThreeDHighlight;background-color:-moz-Dialog}
html|div thumb{-moz-appearance:scrollbarthumb-vertical;min-height:8px}
html|div thumb[orient="horizontal"]{-moz-appearance:scrollbarthumb-horizontal;min-width:8px}
html|div scrollbarbutton{background:-moz-Dialog no-repeat 50% 50%;min-width:16px;min-height:16px}
html|div scrollbarbutton:hover:active,html|div scrollbarbutton[active="true"]{-moz-border-top-colors:ThreeDShadow -moz-Dialog;-moz-border-right-colors:ThreeDShadow -moz-Dialog;-moz-border-bottom-colors:ThreeDShadow -moz-Dialog;-moz-border-left-colors:ThreeDShadow -moz-Dialog;background-position:60% 60%}
html|div scrollbarbutton[type="increment"]{-moz-appearance:scrollbarbutton-right;background-image:url("chrome://global/skin/arrow/arrow-rit.gif")}
html|div scrollbarbutton[type="increment"][disabled="true"]{background-image:url("chrome://global/skin/arrow/arrow-rit-dis.gif")}
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]{-moz-appearance:scrollbarbutton-down;background-image:url("chrome://global/skin/arrow/arrow-dn.gif")}
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"]{background-image:url("chrome://global/skin/arrow/arrow-dn-dis.gif")}
html|div scrollbarbutton[type="decrement"]{-moz-appearance:scrollbarbutton-left;background-image:url("chrome://global/skin/arrow/arrow-lft.gif")}
html|div scrollbarbutton[type="decrement"][disabled="true"]{background-image:url("chrome://global/skin/arrow/arrow-lft-dis.gif")}
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]{-moz-appearance:scrollbarbutton-up;background-image:url("chrome://global/skin/arrow/arrow-up.gif")}
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"]{background-image:url("chrome://global/skin/arrow/arrow-up-dis.gif")}
}
